package ThreadTest.SaleTicket;

public class TicketThread extends Thread{
    Ticket ticket;
    public TicketThread(Ticket ticket){
        this.ticket = ticket;
    }

    //初始化车票
    public void run(){
        for(int i = 1; i < 201; i++){
            ticket.arrayList.add(new Ticket("车票"+i));
        }
    }
}
